<div id="sub_nav">
      <p>Quick Links:</p>
      <ul>
        <li><a href="javascript:void(0);" title="Add Category" controller="add_category" action="index" onclick="showPop(this)">Add Category</a></li>
        <li><a href="javascript:void(0);" title="Global Brand" controller="global_brand" action="index" ElmID="brand" onclick="showPop(this)">Global Brands</a></li>
        <li><a href="javascript:void(0);" title="Global Styles" controller="global_brand" action="index" ElmID="style" onclick="showPop(this)">Global Styles</a></li>
        <li><a href="javascript:void(0);" title="Global Conditions" controller="global_brand" action="index" ElmID="condition" onclick="showPop(this)">Global Conditions</a></li>
        <!--li><a href="javascript:void(0);" title="Shipping Methods" controller="shippings" action="addshipping" onclick="showPop(this)">Shipping Methods</a></li-->
      </ul>
    </div>

	<?php echo $this->element('admin/admin_leftmenu'); ?>

    <div id="left"> 
	  <?php echo $this->Session->flash(); ?>
      <div class="div_header"><?php __('Category at a Glance');?></div>
      <div class="div_content">
 
<?php foreach ($categories as $key=>$value):?>

<?php if ($value['depth']==1):?>

<div class="">
<h3 style="color:#73AE0B;"><?php echo $value['category_name'];?></h3>
<div class="porduct-con">
<?php endif;?>
<?php 
if ($value['depth']!=1):

if ($value['depth']==2)
{
	$margin=$value['depth']*2*10;
	$arrow='&gt;&gt;&nbsp;';
}elseif($value['depth']==3)
{
	$margin=$value['depth']*3*10;
	$arrow='&gt;&gt;&gt;&nbsp;';
}elseif($value['depth']==4)
{
	$margin=$value['depth']*4*10;
	$arrow='&gt;&gt;&gt;&gt;&nbsp;';
}
?>
<p style="margin-left:<?php echo $margin;?>px"><?php echo $arrow.' '.$value['category_name'];?></p>
<?php endif;?>
<?php 
if ($key == count($categories)):?>
<div class="clear"></div>
</div>
</div>
<?php break; endif;?>
<?php 
if ($categories[$key+1]['depth']==1):?>
<div class="clear"></div>
</div>
</div>
<?php endif;?>
<?php //endif;?>
<?php endforeach;?>
      </div>
      <div class="div_bottom"></div>
    </div>    
    <!-- edit sidebar items here -->     
  </div>